package gui.cliente;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
import javax.swing.BorderFactory;
import javax.swing.ImageIcon;
import javax.swing.JButton;

import javax.swing.WindowConstants;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class ShowNumeriTelClienteJPanel extends javax.swing.JPanel {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel datiClientejPanel;
	private JLabel logojLabel;
	private JPanel numerijPanel;
	private JButton aggiungijButton;
	private JButton chiudijButton;
	private JButton modificajButton;
	private JButton eliminajButton;
	private JPanel pulsantijPanel;
	private JLabel comunejLabel;
	private JLabel indirizzojLabel;
	private JLabel nomejLabel;
	private JPanel logojPanel;

	/**
	* Auto-generated main method to display this 
	* JPanel inside a new JFrame.
	*/
	public static void main(String[] args) {
		JFrame frame = new JFrame();
		frame.getContentPane().add(new ShowNumeriTelClienteJPanel());
		frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
		frame.pack();
		frame.setVisible(true);
	}
	
	public ShowNumeriTelClienteJPanel() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			this.setPreferredSize(new java.awt.Dimension(394, 305));
			{
				datiClientejPanel = new JPanel();
				GridBagLayout datiClientejPanelLayout = new GridBagLayout();
				datiClientejPanelLayout.rowWeights = new double[] {0.1, 0.1, 0.1};
				datiClientejPanelLayout.rowHeights = new int[] {7, 7, 7};
				datiClientejPanelLayout.columnWeights = new double[] {0.1};
				datiClientejPanelLayout.columnWidths = new int[] {7};
				datiClientejPanel.setLayout(datiClientejPanelLayout);
				this.add(datiClientejPanel);
				datiClientejPanel.setPreferredSize(new java.awt.Dimension(198, 137));
				datiClientejPanel.setBorder(BorderFactory.createTitledBorder("Dati Cliente"));
				{
					nomejLabel = new JLabel();
					datiClientejPanel.add(nomejLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
					nomejLabel.setText("Cognome Nome (id)");
					nomejLabel.setFont(new java.awt.Font("Segoe UI",3,12));
				}
				{
					indirizzojLabel = new JLabel();
					datiClientejPanel.add(indirizzojLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
					indirizzojLabel.setText("Via Indirizzo Nuovo, numero");
					indirizzojLabel.setFont(new java.awt.Font("Segoe UI",3,12));
				}
				{
					comunejLabel = new JLabel();
					datiClientejPanel.add(comunejLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
					comunejLabel.setText("Comune (PROV)");
					comunejLabel.setFont(new java.awt.Font("Segoe UI",3,12));
				}
			}
			{
				logojPanel = new JPanel();
				this.add(logojPanel);
				logojPanel.setPreferredSize(new java.awt.Dimension(151, 137));
				{
					logojLabel = new JLabel();
					logojPanel.add(logojLabel);
					logojLabel.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/icons/phone128.png")));
				}
			}
			{
				numerijPanel = new JPanel();
				this.add(numerijPanel);
				numerijPanel.setPreferredSize(new java.awt.Dimension(352, 94));
				numerijPanel.setBorder(BorderFactory.createTitledBorder("Numeri"));
			}
			{
				pulsantijPanel = new JPanel();
				this.add(pulsantijPanel);
				pulsantijPanel.setPreferredSize(new java.awt.Dimension(389, 51));
				{
					aggiungijButton = new JButton();
					pulsantijPanel.add(aggiungijButton);
					aggiungijButton.setText("Inserisci");
					aggiungijButton.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/icons/add32.png")));
				}
				{
					eliminajButton = new JButton();
					pulsantijPanel.add(eliminajButton);
					eliminajButton.setText("Elimina");
					eliminajButton.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/icons/del32.png")));
				}
				{
					modificajButton = new JButton();
					pulsantijPanel.add(modificajButton);
					modificajButton.setText("Modifica");
					modificajButton.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/icons/mod32.png")));
				}
				{
					chiudijButton = new JButton();
					pulsantijPanel.add(chiudijButton);
					chiudijButton.setText("Chiudi");
					chiudijButton.setIcon(new ImageIcon(getClass().getClassLoader().getResource("images/icons/close32.png")));
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
